package iq.number;

public class InfinityTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		double i = 1.0/0.0;
		
		System.out.println(i);

		i = 1.0e40;
		System.out.println(i + 1.0);//加1无变化
		
		//毗邻数间相关大于2
		//所以有时候会i=i+1
		i = 0.0/0.0;
		System.out.println(i);//NaN  NaN != NaN true
		
		System.out.println((i-1) == 0);
		//只要有一个操作数为NaN,结果就为NaN
	}

}
